package cn.lanqiao.book.dao;

import cn.lanqiao.book.pojo.Admin;
import cn.lanqiao.book.pojo.Book;

import java.util.List;

public interface IBookDao {
    void addBook(Book book);
    void deleteBook(String name);
    List<Book> queryAll();
    Book queryForOne(String name);
    void updateBook(Book book);
    List<Book> search(String name);
    List<Book> searchbyid(int id);
    List<Book> topBook();
    List<Book> finishbook();
    List<Book> notfinishbook();
    List<Book> searchbookbyab(String name);
    Book queryForOnebybid(int  id);
    void watchcount(int id);
    void likecount(int id);
}
